<template>
  <div>
    <button @click="login">登录</button>
    登录页
  </div>
</template>

<script setup lang="ts">
import useUserPinia from '~/store/user'

const userStore = useUserPinia()
function login() {
  userStore.action.setToken('123')
  navigateTo('/')
}
</script>

<style scoped></style>
